import request from "@/utils/request";

export function getFenceRuleList(params) {
  return request({
    url: `/core/fenceRule/list`,
    method: 'get',
    params
  })
}

export function addFenceRuleList(data) {
  return request({
    url: `/core/fenceRule`,
    method: 'post',
    data
  })
}

export function deleteFenceRuleByIds(fenceRuleIds) {
  return request({
    url: `/core/fenceRule`,
    method: 'delete',
    data: fenceRuleIds
  })
}

export function updateFenceRule(data) {
  return request({
    url: `/core/fenceRule`,
    method: 'put',
    data
  })
}
